package per.turtle.system.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import per.turtle.common.core.constant.ServiceNameConstants;
import per.turtle.common.core.web.entity.CommonResult;
import per.turtle.system.feign.factory.RemoteConfigFallbackFactory;

/**
 * 用户服务
 *
 * @author turtle
 */
@FeignClient(contextId = "remoteConfigService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteConfigFallbackFactory.class)
public interface RemoteConfigService {

    /**
     * 获取用户列表或分页
     *
     * @return 结果
     */
    @PostMapping("config/refreshCache")
    CommonResult<Void> refreshCache();

}
